﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LocationInquiryEntry.aspx.cs" Inherits="com.vs.RF.Web.inventory.LocationInquiryEntry" MasterPageFile="~/RF.Master" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="com.vs.DataAccess" %>
<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="server">

    <script type="text/javascript">
       
        var iNumOfSubmit = 0;

        function valForm() {
            if (form1.tbItem.value == "" &&
                form1.tbItemDesc.value == "" &&
                form1.tbLoc.value == "" &&
                form1.tbLPN.value == "") {
                alert("请至少输入一个查询条件！");
                form1.tbItem.focus();
                return false;
            }
            return true;
        }

        function btnOK_Click() {
            if (iNumOfSubmit > 0)
                return;
            if (valForm()) {
                iNumOfSubmit++;
                form1.action = "LocationInquiryEntryHandling.aspx";
                form1.submit();
            }
        }

        function btnCancel_Click() {
            form1.action = "../login/Main.aspx";
            form1.submit();
        }

        function on_Load() {
            form1.tbItem.focus();
        }
    </script>
    
    <%=stErrorMessage %>
    <form id="form1" action="LocationInquiryEntryHandling.aspx" method="post">
    <div>
        <table>
           <tr>
                <td>货品：</td>
                <td><input type="text" name="tbItem" class="greyRed" /></td>
            </tr>
            <tr>
                <td>名称：</td>
                <td><input type="text" name="tbItemDesc" class="greyRed"  /></td>
            </tr>
            <tr>
                <td>库位：</td>
                <td><input type="text" name="tbLoc" class="greyRed" /></td>
            </tr> 
           <tr>
                <td>LPN：</td>
                <td><input type="text" name="tbLPN" class="greyRed" /></td>
            </tr>
        </table>
        <input type="hidden" name="hdBaseQty" />
    </div>    
    <div id="footer">  
        <input type="button" id="Button1" value="确定" onclick="btnOK_Click()" class="greyRed"/>
        <input type="button" id="Button2" value="取消" onclick="btnCancel_Click()" class="greyRed" />
    </div>
    </form>
</asp:Content>